package com.gs.dao.jdbc.impl.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.gs.bean.ImgNew;

public class ImgNewRowMapper implements RowMapper {

	@Override
	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
		ImgNew obj = new ImgNew();
		obj.setId(rs.getInt("id"));
		obj.setTitle(rs.getString("title"));
		obj.setImgPath(rs.getString("imgpath"));
		obj.setDescribe(rs.getString("describe"));
		return obj;
	}

}
